package com.csy.admin.web;


import com.csy.admin.entity.ResourceShowType;
import com.csy.admin.service.ResourceShowTypeService;
import com.csy.admin.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  可见级别控制类
 * </p>
 *
 * @author csy
 * @since 2018-09-20
 */
@RestController
@RequestMapping("/resourceShowType")
public class ResourceShowTypeController {

    @Autowired
    private ResourceShowTypeService resourceShowTypeService;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    public Result list(){
        List<ResourceShowType> showTypeList = resourceShowTypeService.list(null);
        return Result.ok().put("showTypeList",showTypeList);
    }
}

